package com.csun.cmny.provider.model.dto.watch;

import io.swagger.annotations.ApiModel;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @Auther: chisj chisj@foxmal.com
 * @Date: 2019-01-18 09:04
 * @Description: the class watch switch dto
 */
@Data
@ApiModel(value = "设置孝心手环开关Dto")
public class WatchSwitchDto implements Serializable {

    private static final long serialVersionUID = -1476275987363857231L;

    /**
     * 设备Id
     */
    @NotNull(message = "{device.id.null}")
    private Long deviceId;

    /**
     * 开关状态 0-关闭 1-开启
     */
    @NotNull(message = "{watch.config.switch.null}")
    @Range(min = 0, max = 1, message = "{watch.config.switch.range}")
    private Integer switchs;

}
